package Bean;


import Utils.XmlReplace;

public class CommentBean{
	private String content;
	private String accountid;
	private String name;
	private String time;
	private String id;
	private String itemid;
	private String pic;
	private String type;
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getItemid() {
		return itemid;
	}
	public void setItemid(String itemid) {
		this.itemid = itemid;
	}
	public String getAccountid() {
		return accountid;
	}
	public void setAccountid(String accountid) {
		this.accountid = accountid;
	}
	public String makeXML(){
		return "<cm id=\""+id+"\" content=\""+XmlReplace.escape(content)+"\"" +
				" userid=\""+XmlReplace.escape(accountid)+"\"" +
				" name=\""+XmlReplace.escape(name)+"\"" +
				" itemid=\""+XmlReplace.escape(itemid)+"\"" +
				" time=\""+XmlReplace.escape(time)+"\"" +
				" pic=\""+XmlReplace.escape(pic)+"\"" +
				"/>";
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getTime() {
		return time;
	}
	public void setTime(String time) {
		this.time = time;
	}
	public String getPic() {
		return pic;
	}
	public void setPic(String pic) {
		this.pic = pic;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
}